.card-chat {
        border-radius: 15px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        display: flex;
        flex-direction: column;
        height: auto;
        min-height: 500px;
        max-height: 80vh;
    }

    .card-body {
        padding: 0 !important;
        display: flex;
        flex-direction: column;
        flex: 1;
        min-height: 300px;
    }

    .chat-messages {
        flex: 1;
        padding: 20px;
        overflow-y: auto;
        background-color: #f8f9fa;
        min-height: 200px;
        max-height: calc(80vh - 150px);
    }

    .chat-input-container {
        padding: 15px;
        background-color: white;
        border-top: 1px solid #eee;
        flex-shrink: 0;
    }

    .message {
        display: flex;
        margin-bottom: 15px;
        opacity: 0;
        animation: fadeIn 0.3s ease-out forwards;
    }

    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .user-message {
        justify-content: flex-end;
    }

    .ai-message {
        justify-content: flex-start;
    }

    .message-avatar {
        width: 40px;
        height: 40px;
        margin-right: 10px;
        flex-shrink: 0;
    }

    .message-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 50%;
    }

    .message-content {
        max-width: 80%;
    }

    .message-text {
        padding: 12px 15px;
        border-radius: 18px;
        position: relative;
        word-wrap: break-word;
        white-space: pre-wrap;
        line-height: 1.5;
    }

    .ai-message .message-text {
        background-color: white;
        color: #333;
        border-top-left-radius: 5px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }

    .user-message .message-text {
        background-color: #ffa726;
        color: white;
        border-top-right-radius: 5px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    }

    .message-time {
        font-size: 11px;
        color: #999;
        margin-top: 5px;
        text-align: right;
    }

    .chat-input {
        border-radius: 20px;
        padding: 12px 20px;
        border: 1px solid #ddd;
        transition: all 0.3s;
    }

    .chat-input:focus {
        border-color: #ffa726;
        box-shadow: 0 0 0 2px rgba(255,167,38,0.2);
    }

    .send-button {
        width: 50px;
        height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s;
    }

    .send-button:hover {
        transform: scale(1.05);
    }

    .suggestions {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
    }

    .suggestion-btn {
        border-radius: 15px;
        padding: 3px 10px;
        font-size: 12px;
        margin-right: 5px;
        transition: all 0.2s;
    }

    .suggestion-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    /* 响应式调整 */
    @media (max-width: 768px) {
        .card-chat {
            min-height: calc(100vh - 120px);
            max-height: calc(100vh - 120px);
        }

        .chat-messages {
            max-height: calc(100vh - 270px);
        }
    }